﻿<UserControl x:Class="VAdvantage.Apps.AForms.VBOMDrop"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" xmlns:my="clr-namespace:SLControls.Controls;assembly=SLControls">

    <Grid>
        <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Border BorderThickness="0.8" BorderBrush="DarkGray" Grid.Row="1" Margin="5,5,5,0">
            <Grid Name="vdgvProduct" Width="Auto" Grid.Row="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
            </Grid>
        </Border>
        <!-- Put your content -->

        <Border BorderThickness="0.8" BorderBrush="DarkGray" Grid.Row="0" Margin="5,5,5,0">
            <Grid Name="vdgvSelect" Margin="0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <my:VLabel Height="Auto" HorizontalAlignment="Stretch" Margin="5,5,5,0" Name="vlblProduct" VerticalAlignment="Center" Width="87" Content="P" HorizontalContentAlignment="Right" Grid.Column="1" />
                <my:VLabel Height="Auto" HorizontalAlignment="Stretch" Margin="5,0,5,0" Name="vlblQuantity" VerticalAlignment="Center" Width="87" Content="Q" HorizontalContentAlignment="Right" Grid.Row="2" Grid.Column="3" />
                <my:VLabel Grid.ColumnSpan="1" Height="Auto" HorizontalAlignment="Stretch" Margin="5,5,5,0" Name="vlblOrder" VerticalAlignment="Center" Width="87" Grid.Row="1" HorizontalContentAlignment="Right" Content="O" Grid.Column="1" />
                <my:VLabel Height="Auto" HorizontalAlignment="Stretch" Margin="0,5,5,0" Name="vlblInvoice" VerticalAlignment="Center" Width="87" Content="I" HorizontalContentAlignment="Right" Grid.Column="3" />
                <my:VLabel Height="Auto" HorizontalAlignment="Stretch" Margin="0,5,5,0" Name="vlblProject" VerticalAlignment="Center" Width="87" Grid.Row="1" HorizontalContentAlignment="Right" Content="Pr" Grid.Column="3" />
            </Grid>
        </Border>
        <Border BorderThickness="0.8" BorderBrush="DarkGray" Grid.Row="2" Margin="5,5,5,5">
            <Grid Height="42" HorizontalAlignment="Stretch" Name="grid1" VerticalAlignment="Top" Width="Auto" Grid.Row="2" Margin="-1,0,1,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="35" />
                    <ColumnDefinition Width="42" />
                </Grid.ColumnDefinitions>
                <my:VImage Icon="/VAdvantage;component/Images/right_up.png" Height="35" HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="vbtnOk" VerticalAlignment="Stretch" Width="35" Click="vbtnOk_Click" Grid.Column="2" />
                <my:VImage Icon="/VAdvantage;component/Images/cancel_up.png" Height="35" Margin="0,0,0,0" Name="vbtnCancel" HorizontalAlignment="Left" Width="35" Grid.Column="1" Grid.ColumnSpan="2" Click="vbtnCancel_Click" />
            </Grid>

        </Border>
    </Grid>
        <Grid x:Name="busyWindow" Opacity=".4" Background="LightGray" Visibility="Collapsed" MouseLeftButtonDown="busyWindow_MouseLeftButtonDown" >
            <TextBlock x:Name="txtBusy" FontSize="20" FontStyle="Italic" Visibility="Collapsed" HorizontalAlignment="Center" Text="Loading...." VerticalAlignment="Center"></TextBlock>
        </Grid>
    </Grid>
</UserControl>
